class Time:
def __init__(self, hours=0, minutes=0, seconds=0):
self.hours = hours
self.minutes = minutes
self.seconds = seconds
def to_seconds(self):
return self.hours * 3600 + self.minutes * 60 + self.seconds
time = Time(hours=int(input("Enter the hours: ")),
minutes=int(input("Enter the minutes: ")),
seconds=int(input("Enter the seconds: ")))
print("Total seconds:", time.to_seconds())